//package com.spring.gateway.config;
//
//import com.spring.gateway.filter.after.AfterFilter;
//import com.spring.gateway.filter.befor.BeforeFilter;
//import org.springframework.cloud.gateway.filter.GatewayFilter;
//import org.springframework.cloud.gateway.route.RouteLocator;
//import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//
//@Configuration
//public class GatewayConfig {
//
//    @Bean
//    public RouteLocator appRouteLocator(RouteLocatorBuilder builder) {
//        return builder.routes()
//                .route(r -> r.path("/user/**")
//                        .filters(f -> f.filter((GatewayFilter) new BeforeFilter())
//                                .filter((GatewayFilter) new AfterFilter())
//                        )
//                        .uri("http://10.10.50.174:8080")
//                ).build();
//    }
//}
